import request from '../utils/request'
/**
 * login
 */
 export function login (data) {
    return request({
      url: '/users/login',
      method: 'post',
      data
    })
  }
 export function usercharg (params) {
    return request({
      url: '/leave/count',
      method: 'get',
      params
    })
  }
 export function menulist () {
    return request({
      url: '/menu/list',
      method: 'get',
    })
}
 export function userlist (params) {
    return request({
      url: '/users/list',
      method: 'get',
      params
    })
}
 export function useroperate (data) {
    return request({
      url: '/users/operate',
      method: 'post',
      data
    })
}
 export function usergetone (params) {
    return request({
      url: '/users/getone',
      method: 'get',
      params
    })
}
 export function userdelet (data) {
    return request({
      url: '/users/delete',
      method: 'post',
      data
    })
}
 export function AutoNavilist (params) {
    return request({
      url: '/AutoNavi/list',
      method: 'get',
      params
    })
}
 export function AutoNavoperate (data) {
    return request({
      url: '/AutoNavi/operate',
      method: 'post',
      data
    })
}
 export function AutoNaveditoperate (data) {
    return request({
      url: '/AutoNavi/editoperate',
      method: 'post',
      data
    })
}
 export function AutoNavdelete (params) {
    return request({
      url: '/AutoNavi/delete',
      method: 'get',
      params
    })
}